package com.example.librarysystem.Service;

import com.example.librarysystem.entity.Credit;

import java.sql.Date;
import java.util.List;

public interface CreditService {
    Integer selectCount();
    Integer selectIsBreach(int borrowerId);
    List<Credit> selectByBorrowerId(int borrowerId, int currentPage, int pageSize);
    int selectByBorrowerIdCount(int borrowerId);
    List<Credit> selectByBorrowerIdWithoutPage(int borrowerId);
    Credit selectByBorrowerIdWithBreach(int borrowerId);
    int updateCredit(Credit credit);
    int insertCredit(Credit credit);
    List<Credit> selectByEndDate(Date breachEnd);
}
